home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Kentucky Virtual Art Museum
/
Kentucky Virtual Art Museum.iso
/
site
/
museums
/
webb
/
viewer.swf
/
scripts
/
frame_3
/
DoAction.as
Wrap
Text File
|
2005-02-24
|
632b
|
28 lines
function doLayout()
{
mcLoader._x = Math.ceil(Stage.width / 2);
mcLoader._y = Math.ceil(Stage.height / 2);
}
_global.gmcMain = this;
Stage.align = "TL";
Stage.scaleMode = "noScale";
lstnRez = new Object();
Stage.addListener(lstnRez);
RESIZE_INTERVAL = 300;
lstnRez.onResize = function()
{
var _loc1_ = this;
if(!_loc1_.resizeIntervalId)
{
_loc1_.resizeIntervalId = setInterval(_loc1_,"$onResize",RESIZE_INTERVAL);
}
_loc1_.$onResize = function()
{
doLayout();
clearInterval(this.resizeIntervalId);
delete this.resizeIntervalId;
};
};
doLayout();
stop();